package model;

/**
 * 
 * @author Ceren BOZKURT
 * @author Duygu AYAN
 * @author Pelin OZTURK
 */
public class Flight {

	// Attributes
	private String flightName;
	private String departureDate;
	private String departureTime;
	private String departurePoint;
	private String arrivalPoint;
	private String airlineName;
	private String flightClass;
	private int numberOfSeats;
	private int flightPrice;

	// Note: Search Criteria are DEPARTURE_POINT, ARRIVAL_POINT and DEPARTURE_DATE

	// CONSTRUCTORS
	public Flight(String flightName, String departureDate,
			String departureTime, String departurePoint, String arrivalPoint,
			String airlineName, String flightClass, int price, int numberOfSeats) {
		super();
		this.flightName = flightName;
		this.departureDate = departureDate;
		this.departureTime = departureTime;
		this.departurePoint = departurePoint;
		this.arrivalPoint = arrivalPoint;
		this.airlineName = airlineName;
		this.flightClass = flightClass;
		this.flightPrice = price;
		this.numberOfSeats = numberOfSeats;
	}

	public Flight() {
		super();
	}

	public Flight(String departurePoint,
			String arrivalPoint, String departureDate) {
		super();
		this.departurePoint = departurePoint;
		this.arrivalPoint = arrivalPoint;
		this.departureDate = departureDate;
	}

	// GETTERS SETTERS
	public String getName() {
		return flightName;
	}
	public void setName(String name) {
		this.flightName = name;
	}
	public String getDepartureDate() {
		return departureDate;
	}
	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}
	public String getDepartureTime() {
		return departureTime;
	}
	public void setDepartureTime(String departureTime) {
		this.departureTime = departureTime;
	}
	public int getPrice() {
		return flightPrice;
	}
	public void setPrice(int price) {
		this.flightPrice = price;
	}
	public int getNumberOfSeats() {
		return numberOfSeats;
	}
	public void setNumberOfSeats(int numberOfSeats) {
		this.numberOfSeats = numberOfSeats;
	}
	public String getArrival() {
		return arrivalPoint;
	}
	public void setArrival(String arrival) {
		this.arrivalPoint = arrival;
	}
	public String getDeparture() {
		return departurePoint;
	}
	public void setDeparture(String departure) {
		this.departurePoint = departure;
	}
	public String getAirlineName() {
		return airlineName;
	}
	public void setAirlineName(String airlineName) {
		this.airlineName = airlineName;
	}
	public String getFlightClass() {
		return flightClass;
	}
	public void setFlightClass(String flightClass) {
		this.flightClass = flightClass;
	}

	@Override
	public String toString() {
		return (flightName + " " + arrivalPoint);
	}

}
